Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add utility isEmptyString #792

Merged
merged 10 commits into from
Dec 16, 2024
Merged

feat: add utility isEmptyString #792

merged 10 commits into from
Dec 16, 2024

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Dec 16, 2024

Motivation

The number of times I've written !notEmptyString is slowly becoming ridiculous 😉. Time to create a function for it!

Changes

  • Add isEmptyString - the opposite of existing notEmptyString

Copy link
Contributor

github-actions bot commented Dec 16, 2024

size-limit report 📦

Path Size
@dfinity/ckbtc 8.11 KB (0%)
@dfinity/cketh 3.68 KB (0%)
@dfinity/cmc 1.41 KB (0%)
@dfinity/ledger-icrc 4.19 KB (0%)
@dfinity/ledger-icp 15.43 KB (0%)
@dfinity/nns 37.01 KB (0%)
@dfinity/nns-proto 140.98 KB (0%)
@dfinity/sns 16.98 KB (0%)
@dfinity/utils 4.67 KB (+0.11% 🔺)
@dfinity/ic-management 3.19 KB (0%)

dskloetd
dskloetd previously approved these changes Dec 16, 2024
packages/utils/src/utils/nullish.utils.ts Outdated Show resolved Hide resolved
Signed-off-by: David Dal Busco <[email protected]>
@peterpeterparker peterpeterparker changed the title feat: add utility emptyString feat: add utility isEmptyString Dec 16, 2024
dskloetd
dskloetd previously approved these changes Dec 16, 2024
packages/utils/src/utils/nullish.utils.spec.ts Outdated Show resolved Hide resolved
@peterpeterparker peterpeterparker merged commit c1b473d into main Dec 16, 2024
12 checks passed
@peterpeterparker peterpeterparker deleted the feat/empty-string branch December 16, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants